import 'package:flutter/material.dart';
import 'package:read_book/ui/pages/classify/classify.dart';
import 'package:read_book/ui/pages/search/search.dart';
import 'package:read_book/ui/widget/bottom_navigation_widget.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter bottomNavigationBar',
      theme: ThemeData.light(),
      routes: <String, WidgetBuilder>{
        '/': (BuildContext context) => const BottomNavigationWidget(),
        '/search': (BuildContext context) => const Search(),
        '/classify': (BuildContext context) => const Classify()
      },
    );
  }
}
